<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<% String root = request.getContextPath(); %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript">


function fncIdCheck() {
	var form = document.signupform;
	var spec = "width=500,height=200,scrollbars=no, resizable=1, toolbar=0, menubar=0,location=0, directories=0, status=1";
	window.open("idcheck_popup.jsp", 'idcheckPopup', spec);
}

function fncReload() {
	var form = document.signupform;
	form.userid.value="";
	form.userpass.value="";
	form.username.value="";
	form.useraddr.value="";
	form.userid.focus();
}

</script>
<body>
<h1>회원가입</h1>
<form action="signup.do" name="signupform" method="post" >
	<input type="hidden" name="command" value="signup"/>
<table border="1">
	<tr>
		<td><span style="color: red;">*</span>아이디</td>
		<td>
			<input type="text" id="userid" name="userid" style="width: 100px;"/>
			<input type="button" value="중복체크" onclick="fncIdCheck()"/>
		</td>
	</tr>
	<tr>
		<td><span style="color: red;">*</span>비밀번호</td>
		<td>
			<input type="password" id="userpass" name="userpass" style="width: 100px;"/>
			<span style="font-size: 10px; color: grey">*숫자 및 영어소문자</span>
		</td>
	</tr>
	<tr>
		<td><span style="color: red;">*</span>이름</td>
		<td>
			<input type="text" id="username" name="username" style="width: 100px;"/>
		</td>
	</tr>
	<tr>
		<td>주소</td>
		<td>
			<input type="text" id="useraddr" name="useraddr" style="width: 300px;"/>
		</td>
	</tr>
	<tr>
		<td colspan="2" align="center">
			<input type="button" value="초기화" onclick="fncReload()"/>
			<input type="submit" value="회원가입"/>
		</td>
	</tr>
</table>
</form>
</body>
</html>